package yxy.game.pm2.module.gacha;

public enum GachaHeroType {
	普通(1), 元宝(2), 友情(3), 积分(4),;

	private int number;

	private GachaHeroType(int number) {
		this.number = number;
	}

	public int getNumber() {
		return number;
	}

	static public GachaHeroType forNumber(int number) {
		switch (number) {
		case 1:
			return 普通;
		case 2:
			return 元宝;
		case 3:
			return 友情;
		case 4:
			return 积分;
		default:
			return null;
		}
	}
}
